package org.elanfox.intellicommunity.biz.entity.msg;

import lombok.Getter;
import lombok.Setter;
import org.elanfox.intellicommunity.biz.entity.BasePO;

import javax.persistence.*;

/**
 * 报警处理工单
 *
 * @author allan
 * @version 1.0.0
 * @date 2019/12/27
 */
@Entity
@Table(name = "ic_alarm_work_order")
@Setter
@Getter
@Cacheable(false)
public class AlarmWorkOrderPO extends BasePO {
    /**
     * 工单编号
     */
    @Id
    @Column(name = "id")
    private String id;
    /**
     * 关联报警组
     */
    @ManyToOne
    @JoinColumn(name = "rel_group_id")
    private AlarmMsgGroupPO alarmMsgGroupPO;
    /**
     * 处理地点
     */
    @Column(name = "handle_addr")
    private String handleAddr;
    /**
     * 事发原因
     */
    @Column(name = "reason")
    private String reason;
    /**
     * 出警人员信息
     */
    @Column(name = "police_name")
    private String policeName;
    @Column(name = "police_mobile")
    private String policeMobile;
    /**
     * 处理结果备注
     */
    @Column(name = "remark")
    private String remark;
}
